{include file='../__header.tpl'}
<i id="scriptTag">page_iframe_list_products</i>
<div style="margin-bottom: 40px;">
    <table class="dTable">
        <thead>
            <tr>
                <th>略缩图</th>
                <th>产品名称</th>
                <th>产品价格</th>
                <th>浏览次数</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {foreach item=oi from=$list}
                <tr class="defTr font12">
                    <td>
                        <img width="45px" height="45px" style="vertical-align: middle;margin: 5px 0;" src="/static/product_hpic/{$oi.catimg}" />
                    </td>
                    <td>{$oi.product_name|truncate:35:"..."}</td>
                    <td class="prices">&yen;{$oi.sale_prices}</td>
                    <td>{$oi.product_readi}</td>
                    <th class="gray">
                        <a href="?/WdminPage/iframe_alter_product/mod=edit&id={$oi.product_id}" data-product-id="{$oi.product_id}">编辑</a> / <a href="javascript:;" class="pd-del-btn del" data-product-id="{$oi.product_id}">- 删除</a>
                    </th>
                </tr>
            {/foreach}
        </tbody>
    </table>
</div>
<div class="fix_bottom" style="position: fixed">
    <a class="wd-btn primary" id='add_cate_product' href="?/WdminPage/iframe_alter_product/mod=add&catid={$cat}">+ 添加产品</a>
</div>
{include file='../__footer.tpl'} 